{include file="common/header.tpl"}
<section class="main">
	<nav class="left-col">{include file="common/navi-system.tpl"}</nav>
    <article class="right-col">
    	<h2>Nội dung site tĩnh{if $AppUI->type == 3} &raquo; <a href="{$smarty.const.HOST_BACKEND}content/add">Thêm mới</a>{/if}</h2>             	
        <form name="frmContent" id="frmContent" action="{$smarty.const.HOST_BACKEND}content/act" method="post" enctype="multipart/form-data">
            {if $arrResult}                   
                <div class="s-page">
                    {paging total=$intTotal limit=$intLimit offset=$intOffset url=$strUrl}
                </div>
            {/if}
            <table width="100%" cellpadding="0" cellspacing="0" border="0" class="list">
                <thead>
                    <tr>
                        <th class="firstChild" width="100">Page code</th>
                        <th width="100">Section</th>
                        <th width="200">Trang</th>         
                        <th>Nội dung</th>
                        <th width="120">Ngày đăng</th>
                        {if $smarty.const.LANGUAGE_MULTI}
                            <th width="80">Ngôn ngữ</th>
                        {/if}
                        {if $arrResult} 
                            <th width="20">&nbsp;</th>
                        {/if}
                    </tr>
                </thead>
                <tbody>
                    {if $arrResult}
                        {foreach item=item from=$arrResult}
                            <tr class="{cycle values="odd,even"}">
                                <td class="firstChild">{$item.page}</td>
                                <td>{$item.section}</td>
                                <td>{$item.name}</td>
                                <td>{$item.content|strip_tags|truncate:500}</td>
                                <td>{$item.postdate|date_format:"%d/%m/%Y %H:%M:%S"}</td>
                                {if $smarty.const.LANGUAGE_MULTI}
                                    <td align="center">{$arrLang[$item.language]}</td>
                                {/if}
                                <td align="center">
                                    {*
                                    {if ($smarty.session.content&1<<0)>0}
                                        <a href="{$smarty.const.HOST_BACKEND}content/detail?contentid={$item.contentid}" title="Xem thông tin chi tiết">
                                            <img src="{$smarty.const.HOST_STATICS}backend/img/ad-link.png" alt="Detail" border="0" width="16" height="16" />
                                        </a>
                                    {/if}
                                    *}
                                    {if ($smarty.session.content&1<<2)>0}
                                        <a href="{$smarty.const.HOST_BACKEND}content/edit?contentid={$item.contentid}" title="Cập nhật thông tin">
                                            <img src="{$smarty.const.HOST_STATICS}backend/img/ad-edit.png" alt="Edit" border="0" width="16" height="16" />
                                        </a>
                                    {/if}
                                </td>
                            </tr>
                        {/foreach}
                    {else}
                        <tr><td align="center" colspan="5">Không có dữ liệu</td></tr>
                    {/if}
                </tbody>
            </table>
            {if $arrResult}                   
                <div class="s-page">
                    {paging total=$intTotal limit=$intLimit offset=$intOffset url=$strUrl}
                </div>
            {/if}
        </form>
   	</article>
</section>
{include file="common/footer.tpl"}